﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:PresentationLayer="clr-namespace:DotBeer.UI.WPFClient"
	mc:Ignorable="d"
	x:Class="DotBeer.UI.WPFClient.DisplayControl"
	x:Name="UserControl"
	d:DesignWidth="206" Height="Auto">
    <UserControl.Resources>
        <PresentationLayer:ReverseBoolConverter x:Key="reverseBoolConverter"/>
    </UserControl.Resources>
	<Grid x:Name="LayoutRoot">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="*"/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="40"/>
			<RowDefinition Height="40"/>
			<RowDefinition Height="40"/>
			<RowDefinition Height="40"/>
			<RowDefinition Height="40"/>
			<RowDefinition Height="40"/>
		</Grid.RowDefinitions>
		<CheckBox HorizontalAlignment="{DynamicResource EditControlHorizontalAlignment}" VerticalAlignment="{DynamicResource EditControlVerticalAlignment}" Content="Show all" Style="{DynamicResource CheckBoxStyle}" IsChecked="{Binding Path=ShowAll, UpdateSourceTrigger=PropertyChanged}" Margin="{DynamicResource EditControlMargin}"/>
		<CheckBox HorizontalAlignment="{DynamicResource EditControlHorizontalAlignment}" Margin="{DynamicResource EditControlMargin}" Style="{DynamicResource CheckBoxStyle}" Content="Show core" IsChecked="{Binding Path=ShowCore, UpdateSourceTrigger=PropertyChanged}" d:LayoutOverrides="Height" Grid.Row="1" VerticalAlignment="{DynamicResource EditControlVerticalAlignment}" IsEnabled="{Binding Path=ShowAll, Converter={StaticResource reverseBoolConverter}}"/>
		<CheckBox HorizontalAlignment="{DynamicResource EditControlHorizontalAlignment}" Margin="{DynamicResource EditControlMargin}" Style="{DynamicResource CheckBoxStyle}" Content="Show afterwards" IsChecked="{Binding Path=ShowAfterwards, UpdateSourceTrigger=PropertyChanged}" d:LayoutOverrides="Height" Grid.Row="2" VerticalAlignment="{DynamicResource EditControlVerticalAlignment}" IsEnabled="{Binding Path=ShowAll, Converter={StaticResource reverseBoolConverter}}"/>
		<CheckBox HorizontalAlignment="{DynamicResource EditControlHorizontalAlignment}" Margin="{DynamicResource EditControlMargin}" Style="{DynamicResource CheckBoxStyle}" Content="Show optional" IsChecked="{Binding Path=ShowOptional, UpdateSourceTrigger=PropertyChanged}" d:LayoutOverrides="Height" Grid.Row="3" VerticalAlignment="{DynamicResource EditControlVerticalAlignment}" IsEnabled="{Binding Path=ShowAll, Converter={StaticResource reverseBoolConverter}}"/>
		<TextBlock HorizontalAlignment="{DynamicResource TextBlockHorizontalAlignment}" VerticalAlignment="{DynamicResource TextBlockVerticalAlignemnt}" Text="Custom:" TextWrapping="Wrap" Grid.Row="5" Margin="{DynamicResource TextBlockMargin}"/>
		<TextBox HorizontalAlignment="{DynamicResource EditControlHorizontalAlignment}" VerticalAlignment="{DynamicResource EditControlVerticalAlignment}" Text="{Binding Path=CustomTypes, UpdateSourceTrigger=PropertyChanged}" TextWrapping="Wrap" Grid.Row="5" Margin="53,0,5,0" Style="{DynamicResource TextBoxStyle}" ToolTip="Seprate types with ';'" IsEnabled="{Binding Path=ShowAll, Converter={StaticResource reverseBoolConverter}}"/>
		<CheckBox HorizontalAlignment="{DynamicResource EditControlHorizontalAlignment}" Margin="{DynamicResource EditControlMargin}" Style="{DynamicResource CheckBoxStyle}" Content="Show custom" IsChecked="{Binding Path=ShowCustom, UpdateSourceTrigger=PropertyChanged}" IsEnabled="{Binding Path=ShowAll, Converter={StaticResource reverseBoolConverter}}" Grid.Row="4" d:LayoutOverrides="Height" VerticalAlignment="{DynamicResource EditControlVerticalAlignment}"/>
	</Grid>
</UserControl>